package com.aispeech.asr.clib.post;

import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

public class AlignInfo {
    @Getter
    private List<AlignElement> alignElements;

    public AlignInfo() {
        alignElements = new ArrayList<>();
    }

    public void addElement(long start, long end, String speaker, String rec, char pos) {
        addElement(start, end, speaker, rec, "", pos);
    }

    public void addElement(long start, long end, String speaker, String rec, String pinyin, char pos) {
        alignElements.add(new AlignElement(start, end, speaker, rec, pinyin, pos));
    }
}
